package com.ssy.lingxi.scheduler.config;

import com.ssy.lingxi.scheduler.service.IScheduleDataInitService;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 定时任务服务初始化类
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-12
 */
@Component
public class SchedulerServiceInitConfig {

    @Resource
    private IScheduleDataInitService scheduleDataInitService;

    @PostConstruct
    public void initSchedulerServiceData() {
        //创建Quartz相关表
        scheduleDataInitService.createQuartzTables();
    }
}
